gtk4.git
13 years agoUpdated Russia translation
Yuri Myasoedov [Sat, 23 Mar 2013 16:03:18 +0000 (20:03 +0400)]
Updated Russia translation

13 years agoGtkBuilder: Fixed documentation
Tristan Van Berkom [Sat, 23 Mar 2013 11:44:12 +0000 (20:44 +0900)]
GtkBuilder: Fixed documentation

The documentation was referring to an <external-object> tag
which we never implemented

13 years agoAdd gdk_set_allowed_backends
Matthias Clasen [Sat, 23 Mar 2013 04:16:24 +0000 (00:16 -0400)]
Add gdk_set_allowed_backends

This new function allows programmatic control over the
GDK backends that will be used at runtime.

13 years agoImplement GInitable in GdkBroadwayDisplayManager
Matthias Clasen [Sat, 23 Mar 2013 04:47:22 +0000 (00:47 -0400)]
Implement GInitable in GdkBroadwayDisplayManager

Add GInitable implementation and fail the initialisation if it is not
possible to set up a broadway server.

13 years agoImplement GInitable in GdkX11DisplayManager
Matthias Clasen [Sat, 23 Mar 2013 04:37:53 +0000 (00:37 -0400)]
Implement GInitable in GdkX11DisplayManager

Add GInitable implementation and fail the initialisation if it is not
possible to connect to the display server.

13 years agowayland: implement GInitable and check the connection to the display server
Thomas Wood [Fri, 22 Feb 2013 16:44:13 +0000 (16:44 +0000)]
wayland: implement GInitable and check the connection to the display server

Add GInitable implementation and fail the initialisation if it is not
possible to connect to the display server.

https://bugzilla.gnome.org/show_bug.cgi?id=694465

13 years agogdk: Implement GInitable on GdkDisplayManager
Thomas Wood [Fri, 22 Feb 2013 16:41:12 +0000 (16:41 +0000)]
gdk: Implement GInitable on GdkDisplayManager

Add GInitable interface with a default implementation that always
succeeds. This allows backends to override the GInitable implementation
and add their own checks to determine if the backend can be loaded.  If
a backend cannot be loaded, GDK can attempt to load the next available
backend.

Since backends may need to read any relevant options (such as the
display flag) to determine if they can be created successfully, this
patch also removes calls that attempt to create the display manager
before the options have been parsed.

https://bugzilla.gnome.org/show_bug.cgi?id=694465

13 years agoUpdate cursor theme on wayland
Matthias Clasen [Sat, 23 Mar 2013 00:31:50 +0000 (20:31 -0400)]
Update cursor theme on wayland

Call the new new api from gtksettings.c when it changes, just
as we do for X11.
https://bugzilla.gnome.org/show_bug.cgi?id=696428

13 years agowayland: Implement cursor theme changing
Matthias Clasen [Sat, 23 Mar 2013 00:30:51 +0000 (20:30 -0400)]
wayland: Implement cursor theme changing

Add gdk_wayland_display_set_cursor_theme and implement it.

13 years agowayland: Respect cursor size setting
Matthias Clasen [Fri, 22 Mar 2013 23:32:39 +0000 (19:32 -0400)]
wayland: Respect cursor size setting

Respect the cursor size setting when loading the cursor theme.

13 years agowayland: Add cursor-size setting
Matthias Clasen [Fri, 22 Mar 2013 23:27:36 +0000 (19:27 -0400)]
wayland: Add cursor-size setting

This will be picked up by cursor themes soon.

13 years agowayland: Avoid segfault when cursors are freed
Matthias Clasen [Fri, 22 Mar 2013 23:09:20 +0000 (19:09 -0400)]
wayland: Avoid segfault when cursors are freed

The check for GDK_CURSOR_IS_PIXMAP was ineffective, since _all_
cursors have this type, from the looks of it. Instead, store
buffer ownership information separately.

13 years agowayland: Emit GdkKeymap::state-changed when appropriate
Matthias Clasen [Fri, 22 Mar 2013 22:34:44 +0000 (18:34 -0400)]
wayland: Emit GdkKeymap::state-changed when appropriate

This makes the caps lock warning in password entries work.

13 years agowayland: Make key repeat configurable
Matthias Clasen [Fri, 22 Mar 2013 22:26:33 +0000 (18:26 -0400)]
wayland: Make key repeat configurable

These might be candidates for a future settings interface; until
then, we use GSettings directly. Note again that we are careful
to avoid a dependency on GNOME schemas.

13 years agowayland: Factor out key repeat parameters
Matthias Clasen [Fri, 22 Mar 2013 22:09:23 +0000 (18:09 -0400)]
wayland: Factor out key repeat parameters

This is in preparation for picking these values up from
existing configuration.

13 years agowayland: Drop an unused variable
Matthias Clasen [Fri, 22 Mar 2013 21:53:28 +0000 (17:53 -0400)]
wayland: Drop an unused variable

The keymap member in GdkWaylandDisplay is not used at all,
so drop it.

13 years agowayland: Fix key repeat
Matthias Clasen [Fri, 22 Mar 2013 21:43:50 +0000 (17:43 -0400)]
wayland: Fix key repeat

Key repeat under X is not affected by modifiers. And on some systems
(e.g my Thinkpad), NumLock is permanently on, rendering key repeat
nonfunctional. This commit changes the Wayland backend to do
key repeat regardless of modifiers.
http://bugzilla.gnome.org/show_bug.cgi?id=695497

13 years agoappchooserbutton: filter out applications not supposed to be visible
Cosimo Cecchi [Fri, 22 Mar 2013 16:44:27 +0000 (12:44 -0400)]
appchooserbutton: filter out applications not supposed to be visible

Ensure NoDisplay=true applications don't end up in the list populated by
GtkAppChooserButton.

https://bugzilla.gnome.org/show_bug.cgi?id=696405

13 years agohindi translation
Rajesh Ranjan [Fri, 22 Mar 2013 09:31:16 +0000 (15:01 +0530)]
hindi translation

13 years agoDon't react to clicks in content
Matthias Clasen [Thu, 21 Mar 2013 18:01:33 +0000 (14:01 -0400)]
Don't react to clicks in content

This breaks way too many things, and we explicitly trigger
drags from menubars and toolbars, where we want it.

13 years agocsd: Make link activation work reliably
Matthias Clasen [Thu, 21 Mar 2013 17:39:06 +0000 (13:39 -0400)]
csd: Make link activation work reliably

The label code was just letting some button press events bubble
up, which caused misbehaviour with the window dragging code.
https://bugzilla.gnome.org/show_bug.cgi?id=695506

13 years agocsd: Allow moving maximized windows
Matthias Clasen [Thu, 21 Mar 2013 17:07:29 +0000 (13:07 -0400)]
csd: Allow moving maximized windows

This make the nice 'snap off' feature of gnome-shell work
with client-side decorations. weston moves the maximized window
around, which is less ideal...

13 years agowayland: complete cursor_for_pixbuf
Thomas Hindoe Paaboel Andersen [Thu, 21 Mar 2013 20:05:32 +0000 (21:05 +0100)]
wayland: complete cursor_for_pixbuf

Finishes the implementation for loading cursors from pixbufs.

Gnome bug #696223

13 years agowin32: link with -lwinmm
Kalev Lember [Thu, 21 Mar 2013 21:26:02 +0000 (22:26 +0100)]
win32: link with -lwinmm

... to resolve the timeBeginPeriod() / timeEndPeriod() symbols after
commit 5dbf814f0c0c94733ef96d6dc3c8c5ddb7a63f3a.

13 years agowindow: don't add the background style class when drawing CSD elements
Cosimo Cecchi [Thu, 21 Mar 2013 12:47:06 +0000 (08:47 -0400)]
window: don't add the background style class when drawing CSD elements

We already set it in init, so this is just redundant.
The additional window-content style class here is needed so that we can
distinguish between the full X window background and the background for
the actual window contents.

13 years agowindow: add a "client-decorated" style class when the window is so
Cosimo Cecchi [Thu, 21 Mar 2013 12:46:43 +0000 (08:46 -0400)]
window: add a "client-decorated" style class when the window is so

The theme might want to apply some specific theming to a client
decorated toplevel window, so add a style class for that.

13 years agoUpdated galician translations
Fran Diéguez [Thu, 21 Mar 2013 19:29:59 +0000 (20:29 +0100)]
Updated galician translations

13 years agoUpdated Kazakh translation.
Baurzhan Muftakhidinov [Thu, 21 Mar 2013 18:22:37 +0000 (00:22 +0600)]
Updated Kazakh translation.

13 years agowayland: Clear current cusor on leave so we always set it on enter
Kristian Høgsberg [Thu, 21 Mar 2013 12:51:35 +0000 (08:51 -0400)]
wayland: Clear current cusor on leave so we always set it on enter

Commit 0d9d808217a04ee965ce5f60f9aff00b2ec4938e fixed the hotspot issue,
but commit f2cc52fddd74b3064eec85e17161ebbc4ee14f49 then optimized away
cursor changes a little too aggressively.  We always need to set the
cursor on enter.  Make sure we clear the current cursor on leave so we
don't think it's already set on the next enter.

https://bugzilla.gnome.org/show_bug.cgi?id=695512

13 years agoWayland: Read settings out of GSettings directly
Matthias Clasen [Thu, 21 Mar 2013 10:52:42 +0000 (06:52 -0400)]
Wayland: Read settings out of GSettings directly

Until we figure out where we want to go with settings under
Wayland, this makes GTK+ applications a lot easier to deal
with under Wayland.

Note that we are careful to deal with the absence of schemas,
so this does not introduce a dependency on GNOME settings.

13 years ago[l10n] Updated German translation
Mario Blättermann [Thu, 21 Mar 2013 08:20:34 +0000 (09:20 +0100)]
[l10n] Updated German translation

13 years agoFix DND
Matthias Clasen [Thu, 21 Mar 2013 03:54:49 +0000 (23:54 -0400)]
Fix DND

The removal of the Motif DND code accidentally changed the
value of the TARGET_DELETE enumeration value, breaking DND
pretty badly.

13 years agoGtkColorChooserDialog: make alternative button order work
Matthias Clasen [Thu, 21 Mar 2013 02:38:36 +0000 (22:38 -0400)]
GtkColorChooserDialog: make alternative button order work

The alternative button order that we set did not actually
work, since the ok button did not have a response id.
Partial fix for
https://bugzilla.gnome.org/show_bug.cgi?id=695493

13 years agowayland: Only set cursor when it changes
Kristian Høgsberg [Thu, 21 Mar 2013 02:42:44 +0000 (22:42 -0400)]
wayland: Only set cursor when it changes

13 years agowayland: Add a cursor cache
Kristian Høgsberg [Thu, 21 Mar 2013 02:34:03 +0000 (22:34 -0400)]
wayland: Add a cursor cache

We avoid creating a new GdkCursor object every time
_gdk_wayland_display_get_cursor_for_name/type() is called.

13 years agowayland: Use the pointer enter serial when setting cursor surface
Kristian Høgsberg [Thu, 21 Mar 2013 02:02:42 +0000 (22:02 -0400)]
wayland: Use the pointer enter serial when setting cursor surface

wl_pointer.set_cursor is rejected if the serial number doesn't match
the enter serial number for the wl_pointer.  We passed the right serial
number when setting the cursor surface in response to the enter event.
Later set_cursor requests fail, but we can still attach new buffers to
our cursor surface, which is why the cursor changed, but the hotspot
didn't update.  Clicking in the decoration results in a leave/enter pair
which triggers wl_pointer.set_cursor with the right serial. That's why
clicking the decoration sets the right cursor.

https://bugzilla.gnome.org/show_bug.cgi?id=695512

13 years agoGtkColorChooser: Fix selection of colors
Matthias Clasen [Thu, 21 Mar 2013 02:17:14 +0000 (22:17 -0400)]
GtkColorChooser: Fix selection of colors

Prevent the new window dragging code from interfering with
selection of colors on button release, by handling button
presses we care about instead of letting them bubble up to
the window.
Partial fix for
https://bugzilla.gnome.org/show_bug.cgi?id=695493

13 years agowayland: Keep hotspot when changing cursors
Matthias Clasen [Thu, 21 Mar 2013 01:47:12 +0000 (21:47 -0400)]
wayland: Keep hotspot when changing cursors

We need to pass the delta between the old and new hotspot
when attaching the new cursor surface, to keep the hotspot
at the same position. We can't deal with this in the compositor,
since the set_cursor call already overwrites the old hotspot,
so the information is lost by the time the attach happens.
Unfortunately, we can't query the initial hotspot from
the compositor, so the first cursor change will make the
hotspot jump.
https://bugzilla.gnome.org/show_bug.cgi?id=695512

13 years agoUpdated Hungarian translation
Gabor Kelemen [Wed, 20 Mar 2013 23:31:21 +0000 (00:31 +0100)]
Updated Hungarian translation

13 years agoGtkWindow: clean up button event handling
Matthias Clasen [Wed, 20 Mar 2013 15:42:35 +0000 (11:42 -0400)]
GtkWindow: clean up button event handling

We were not translating event coordinates to the toplevel
window, thus the regions we determined were not right.
We were also not respecting the maximized state, and we
were unnecessarily refusing to handle events when not decorated.
https://bugzilla.gnome.org/show_bug.cgi?id=696197

13 years agoUpdated Hungarian translation
Balázs Úr [Wed, 20 Mar 2013 21:10:37 +0000 (22:10 +0100)]
Updated Hungarian translation

13 years agoUpdated Odia Translation.
ManojKumar Giri [Wed, 20 Mar 2013 13:56:57 +0000 (19:26 +0530)]
Updated Odia Translation.

13 years agoGtkWidget: Handle style updates before realize
Alexander Larsson [Wed, 20 Mar 2013 12:56:16 +0000 (13:56 +0100)]
GtkWidget: Handle style updates before realize

If the style changes before we're realized we will delay the
style-updated signal until realize. However, we then lose
the changes bitmap. This means that gtk_widget_real_style_updated()
must treat a NULL change as "everything changed" and queue a resize.

13 years agoUpdate Visual Studio Proprerty Sheets
Chun-wei Fan [Wed, 20 Mar 2013 11:08:19 +0000 (19:08 +0800)]
Update Visual Studio Proprerty Sheets

Stop installing the gtk3-demo data files as they are now built into the
gtk3-demo program using GResources.

13 years agoFix introspection building for Visual Studio builds
Chun-wei Fan [Wed, 20 Mar 2013 09:42:15 +0000 (17:42 +0800)]
Fix introspection building for Visual Studio builds

Apparently time_t is used in gtkrecentmanager.h, which is a special type
that could not be recognized when Gtk-3.0.gir is built.  Judging from the
ast.py from the gobject-introspection package, we can define time_t as
long, and this will allow pygobject to load the Gtk module from
gi.repository.

13 years agoAssamese translation updated
Nilamdyuti Goswami [Wed, 20 Mar 2013 07:51:17 +0000 (13:21 +0530)]
Assamese translation updated

13 years agoL10N: Updated Persian Translation
Arash Mousavi [Wed, 20 Mar 2013 06:43:17 +0000 (10:13 +0330)]
L10N: Updated Persian Translation

13 years agoAdd an example for subtitles in header bars
Matthias Clasen [Wed, 20 Mar 2013 02:08:13 +0000 (22:08 -0400)]
Add an example for subtitles in header bars

13 years agoGtkHeaderBar: Add subtitle support
Matthias Clasen [Wed, 20 Mar 2013 02:07:26 +0000 (22:07 -0400)]
GtkHeaderBar: Add subtitle support

As seen in GdHeaderBar.

13 years agoGtkHeaderBar: Survive toggling custom / non-custom titles
Matthias Clasen [Wed, 20 Mar 2013 00:52:54 +0000 (20:52 -0400)]
GtkHeaderBar: Survive toggling custom / non-custom titles

The code was always adding a label widget as a child, but
then skipping over it in forall if a custom_title was present.
This confuses internal logic of GTK+ which assumes that it
can iterate over the entire widget hierarchy with forall,
to maintain state. Fix this by destroying the label when
a custom_title is set, and recreating it as needed.

13 years agotest custom titles more thoroughly
Matthias Clasen [Wed, 20 Mar 2013 00:51:43 +0000 (20:51 -0400)]
test custom titles more thoroughly

This adds a way to toggle between custom and non-custom titles
in testheaderbar, which is currently broken.

13 years agoGtkHeaderBar: Don't leak
Matthias Clasen [Wed, 20 Mar 2013 00:35:28 +0000 (20:35 -0400)]
GtkHeaderBar: Don't leak

Should have a finalize function, if there's strings to free.
Also avoid some pointless extra ref on custom title widgets.

13 years ago[l10n] Updated Catalan translation
Gil Forcada [Tue, 19 Mar 2013 22:15:11 +0000 (23:15 +0100)]
[l10n] Updated Catalan translation

13 years agowayland: Preserve dimensions separately for fullscreen / maximised case
Rob Bradford [Tue, 19 Mar 2013 19:52:49 +0000 (19:52 +0000)]
wayland: Preserve dimensions separately for fullscreen / maximised case

Use separate fields for saving the window dimensions prior to fullscreening
and maximisation. Then use those fields to restore the window dimensions from.

13 years agowindow: Use update_window_buttons to hide title on fullscreen
Rob Bradford [Tue, 19 Mar 2013 19:40:30 +0000 (19:40 +0000)]
window: Use update_window_buttons to hide title on fullscreen

The function update_window_buttons shows or hides the title header after it
has finished updating the visibility of the various buttons. Unfortunately
this
conflicted with the hiding of the title done when going fullscreen.

This solves the problem and fixes the rendering of fullscreen applications by
using update_window_buttons to control the visibility of the box in the
fullscreen case.

13 years agowayland: Implement gdk_window_[un]maximize
Scott Moreau [Sat, 16 Mar 2013 23:34:57 +0000 (17:34 -0600)]
wayland: Implement gdk_window_[un]maximize

This allows the buttons in the decorations to maximise the window.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=695945
Signed-off-by: Rob Bradford <rob@linux.intel.com>
13 years agobroadway: Fix assert failure
Alexander Larsson [Mon, 18 Mar 2013 15:37:25 +0000 (16:37 +0100)]
broadway: Fix assert failure

Requests are not limited in size by BroadwayRequest, as
BroadwayRequestTranslation can be of variable size. No need
to copy the request anymore though, because requests are aligned
now.

13 years agobroadway: Ensure broadway request members are 32bit aligned
Alexander Larsson [Mon, 18 Mar 2013 15:36:27 +0000 (16:36 +0100)]
broadway: Ensure broadway request members are 32bit aligned

13 years agogtk: gtk_init_with_args allows NULL for parameter_string
Christian Persch [Mon, 18 Mar 2013 13:04:52 +0000 (14:04 +0100)]
gtk: gtk_init_with_args allows NULL for parameter_string

13 years agoRevert "GtkHeaderBar: Allow window dragging"
Matthias Clasen [Mon, 18 Mar 2013 12:41:39 +0000 (08:41 -0400)]
Revert "GtkHeaderBar: Allow window dragging"

This reverts commit 30a1a79322f4097ce47c2a08678479d00cc54b69.

This turns out to be unnecessary when you can set the titlebar
on the window and let GtkWindow handle the events. As a benefit,
we get the window menu on custom titlebars for free.

13 years agoUse gtk_window_set_titlebar in testheaderbar
Matthias Clasen [Mon, 18 Mar 2013 12:26:24 +0000 (08:26 -0400)]
Use gtk_window_set_titlebar in testheaderbar

This demonstrates how custom titlebars work both with
and without csd.

13 years agoAdd documentation for gtk_window_set_titlebar
Matthias Clasen [Mon, 18 Mar 2013 12:48:15 +0000 (08:48 -0400)]
Add documentation for gtk_window_set_titlebar

13 years agoAdd gtk_window_set_titlebar
Matthias Clasen [Mon, 18 Mar 2013 12:38:02 +0000 (08:38 -0400)]
Add gtk_window_set_titlebar

A new function that sets a custom titlebar on a GtkWindow.
With client-side decorations, the custom titlebar simply
replaces the one that GtkWindow would otherwise create itself.
With traditional decorations, we tell the window manager
to just decorate the window with a border. This works ok
at least with metacity and mutter.

13 years agoSmall cleanup in gtk_window_draw
Matthias Clasen [Mon, 18 Mar 2013 12:36:04 +0000 (08:36 -0400)]
Small cleanup in gtk_window_draw

Get the allocation once, at the beginning.

13 years agowindow: Don't draw titlebar background
Matthias Clasen [Mon, 18 Mar 2013 12:32:27 +0000 (08:32 -0400)]
window: Don't draw titlebar background

GtkHeaderBar can do its own drawing, no need to do this
in gtk_window_draw.

13 years agoTrivial whitespace fix
Matthias Clasen [Mon, 18 Mar 2013 12:29:50 +0000 (08:29 -0400)]
Trivial whitespace fix

13 years agoAdd forgotten check
Matthias Clasen [Mon, 18 Mar 2013 12:28:44 +0000 (08:28 -0400)]
Add forgotten check

We don't want to create titlebar widgets if the window
is not decorated anyway.

13 years agowayland: Always attach buffer before committing
Scott Moreau [Sun, 10 Mar 2013 16:51:01 +0000 (10:51 -0600)]
wayland: Always attach buffer before committing

With recent changes in attach semantics, we always need to attach before
committing. Without this changes to the window contents to not get reflected
in the content of the surface.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
13 years agowayland: Remove unneeded semicolons
Scott Moreau [Fri, 15 Mar 2013 21:27:18 +0000 (15:27 -0600)]
wayland: Remove unneeded semicolons

Signed-off-by: Rob Bradford <rob@linux.intel.com>
13 years agowayland: Remove unused wayland-egl header
Scott Moreau [Sun, 10 Mar 2013 18:04:57 +0000 (12:04 -0600)]
wayland: Remove unused wayland-egl header

This was left over from the work done in commit: d4a9863

Signed-off-by: Rob Bradford <rob@linux.intel.com>
13 years agowayland: Set title on shell surfaces to window title
Scott Moreau [Sat, 16 Mar 2013 23:57:17 +0000 (17:57 -0600)]
wayland: Set title on shell surfaces to window title

We currently use this information to display the title
string in the window list of the desktop shell.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
13 years agoUpdated Latvian translation
Rūdolfs Mazurs [Mon, 18 Mar 2013 11:49:04 +0000 (13:49 +0200)]
Updated Latvian translation

13 years agoAssamese translation updated
Nilamdyuti Goswami [Mon, 18 Mar 2013 10:45:12 +0000 (16:15 +0530)]
Assamese translation updated

13 years agoAssamese translation updated
Nilamdyuti Goswami [Mon, 18 Mar 2013 10:39:34 +0000 (16:09 +0530)]
Assamese translation updated

13 years agoFix Visual Studio Debug configs
Chun-wei Fan [Mon, 18 Mar 2013 09:14:33 +0000 (17:14 +0800)]
Fix Visual Studio Debug configs

The debug builds must link to the Debug version of the CRT, otherwise
trouble will arise from mixing different CRTs into the resulting binary.

13 years agoFix a typo
Matthias Clasen [Mon, 18 Mar 2013 05:20:08 +0000 (01:20 -0400)]
Fix a typo

13 years agoAdd a headerbar test
Matthias Clasen [Mon, 18 Mar 2013 05:03:39 +0000 (01:03 -0400)]
Add a headerbar test

Add a testcase for GtkHeaderBar that shows how it can be used
without client-side decorations.

13 years agoGtkHeaderBar: Allow window dragging
Matthias Clasen [Mon, 18 Mar 2013 05:02:19 +0000 (01:02 -0400)]
GtkHeaderBar: Allow window dragging

We use the same window-dragging style property here to enable
this as for menubars and toolbars.

13 years agoFix double accounting of border width
Matthias Clasen [Sun, 17 Mar 2013 23:00:13 +0000 (19:00 -0400)]
Fix double accounting of border width

For csd, we were subtracting the border width one too many
times from the child height, causing clipped off content e.g.
in the 'Properties' window in testgtk.

13 years agoAllocate the titlebar height according to width
Matthias Clasen [Sun, 17 Mar 2013 22:35:21 +0000 (18:35 -0400)]
Allocate the titlebar height according to width

13 years agoAdd some visible border to the default csd
Matthias Clasen [Sun, 17 Mar 2013 22:34:35 +0000 (18:34 -0400)]
Add some visible border to the default csd

13 years agoReplace GLE reference
Matthias Clasen [Sun, 17 Mar 2013 22:25:45 +0000 (18:25 -0400)]
Replace GLE reference

Recommending gtkparasite is more useful nowadays.

13 years agoUpdated galician translations
Fran Diéguez [Sun, 17 Mar 2013 22:22:29 +0000 (23:22 +0100)]
Updated galician translations

13 years agoGtkFontButton: default show-preview-entry to TRUE
Matthias Clasen [Sun, 17 Mar 2013 20:24:34 +0000 (16:24 -0400)]
GtkFontButton: default show-preview-entry to TRUE

This is what the property declaration says, after all.
https://bugzilla.gnome.org/show_bug.cgi?id=695948

13 years agoGtkEntryAccessible: also handle entry icon tooltip NULL in notify_gtk.
Alban Browaeys [Thu, 7 Mar 2013 14:54:04 +0000 (15:54 +0100)]
GtkEntryAccessible: also handle entry icon tooltip NULL in notify_gtk.

To clear the tooltip one is to set the tooltip to NULL. Though
the GtkEntryAccessible expect this tooltip to not be NULL in
gtk_entry_accessible_notify_gtk (already handling this case
 in its _init).

Fixes:
** (epiphany:23914): CRITICAL **: atk_object_set_description: assertion
`description != NULL' failed
when epiphany g_object_set the entry icon tooltip to NULL (clear the
tooltip) in its find bar.

https://bugzilla.gnome.org/show_bug.cgi?id=695375

13 years agoGtkLabel: fix mnemonic-keyval when use-markup is true
Sébastien Wilmet [Tue, 24 Apr 2012 20:22:22 +0000 (22:22 +0200)]
GtkLabel: fix mnemonic-keyval when use-markup is true

To extract the mnemonic key value, the string must contain the
underscore. But when the "gtk-auto-mnemonics" setting is true and when
the Alt key is not pressed, the underscore must not be displayed. The
problem was that the 'new_str' variable was used for both purposes:
extract the text to display, and extract the accelerator character.

When the underscore must not be visible, the underscores were removed
from the 'new_str' variable before extracting the accelerator character.

Now there are two strings, one for each purpose.

https://bugzilla.gnome.org/show_bug.cgi?id=674759

13 years agoUpdated POTFILES.in
Piotr Drąg [Sun, 17 Mar 2013 16:47:32 +0000 (17:47 +0100)]
Updated POTFILES.in

13 years agocss: Add style entries for client side decorations to default CSS
Rob Bradford [Tue, 19 Feb 2013 12:55:07 +0000 (12:55 +0000)]
css: Add style entries for client side decorations to default CSS

13 years agowindow: Render inner and outer border separately
Matthias Clasen [Sun, 10 Mar 2013 17:46:59 +0000 (13:46 -0400)]
window: Render inner and outer border separately

This lets themes render a window frame in the inner border,
and a shadow or nothing in the outer border.

13 years agowindow: Split the border into inner and outer
Matthias Clasen [Sun, 17 Mar 2013 01:37:51 +0000 (21:37 -0400)]
window: Split the border into inner and outer

For now, nothing changes, we're using the sum of inner and
outer border everywhere.

In the future, we will make the inner border the visible
window frame, and the outer border the shadow/resize border.

13 years agowindow: Hide the border when maximized
Matthias Clasen [Sun, 10 Mar 2013 07:30:26 +0000 (03:30 -0400)]
window: Hide the border when maximized

Dragging windows from the border is not useful when maximized.

13 years agowindow: Add a window menu to the titlebar
Matthias Clasen [Sun, 10 Mar 2013 06:39:19 +0000 (01:39 -0500)]
window: Add a window menu to the titlebar

The menu is triggered by right-click on the titlebar
or with the menu key.

13 years agowindow: Allow resizing by clicking on the border
Matthias Clasen [Sun, 10 Mar 2013 06:11:18 +0000 (01:11 -0500)]
window: Allow resizing by clicking on the border

We also change cursors to indicate what interactions
are possible in various window regions.
Double clicking on the titlebar maximizes the window.

13 years agowindow: Allow theme control over window buttons
Matthias Clasen [Sun, 10 Mar 2013 04:03:38 +0000 (23:03 -0500)]
window: Allow theme control over window buttons

Add a style property to control the presence and order of
window buttons. We allow buttons at the left and right side,
they can be specified like this: icon,close:minimize,maximize.

Also, change the default button layout back to have just a close
button on the right, use icons in buttons, and set style classes
on the buttons, to allow better theming.

13 years agoAdd icons for frame buttons
Matthias Clasen [Sat, 16 Mar 2013 23:11:26 +0000 (19:11 -0400)]
Add icons for frame buttons

Add window-minimize, window-maximize, window-restore and window-delete
icons to the builtin icon theme. These will be used for icons in
the window buttons, and the expectation is that the icon theme
will provide icons matching the desired decoration style.

window-delete is used instead of window-close, since window-close
is also used for GTK_STOCK_CLOSE, and the two may require different
styles when used inside the application vs in the window frame.

13 years agowindow: Hide frame buttons when appropriate
Matthias Clasen [Sun, 10 Mar 2013 03:28:39 +0000 (22:28 -0500)]
window: Hide frame buttons when appropriate

Hide the close button if the window is not deletable, hide the
maximize button if the window is not resizable, and hide all
buttons if the window is a dialog.

Update buttons when the window state changes.

13 years agowindow: Use same title fallback mechanism as X backend
Matthias Clasen [Sun, 17 Mar 2013 16:08:17 +0000 (12:08 -0400)]
window: Use same title fallback mechanism as X backend

This looks at the application name or program name and uses that
as the title if gtk_window_set_title has not been called.

13 years agowindow: Add support for enabling client decorations on non-Wayland
Matthias Clasen [Sun, 17 Mar 2013 16:06:26 +0000 (12:06 -0400)]
window: Add support for enabling client decorations on non-Wayland

Client side decorations can be enabled on non-Wayland platforms by
setting the GTK_CSD="1" environment variable.

We must ensure we have a GdkVisual that has an alpha channel since
the decorations rely on transparency. If we cannot get a visual with
an alpha channel then we do not enable client side decorations.

13 years agowindow: Hide the decorations on fullscreen
Rob Bradford [Thu, 31 Jan 2013 17:24:31 +0000 (17:24 +0000)]
window: Hide the decorations on fullscreen

This is expected behaviour for fullscreen windows.

13 years agowindow: Don't set a background pattern/colour when client decorated
Rob Bradford [Tue, 19 Feb 2013 19:26:19 +0000 (19:26 +0000)]
window: Don't set a background pattern/colour when client decorated

Otherwise we'll potentially get some background sticking through our rounded
corners in our decorations. The actual background will get drawn as part of
the decoration drawing.